FROM moxm/java:1.8-full

MAINTAINER 1127152834@qq.com

ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /loong-mp-platform

WORKDIR /loong-mp-platform

EXPOSE 6000

ADD ./target/loong-mp-platform.jar ./

CMD java $JAVA_OPTS -jar loong-mp-platform.jar
